/*
 * Copyright (c) 2006-2024, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-27     RT-Thread    first version
 */

#include <rtthread.h>

#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>
#include "uart/uart.h"
#include "oled/oled.h"
#include "motor/motor.h"
#include "key/key.h"
#include "distance/distance.h"
#include "led_thread/led_thread.h"

int main(void)
{
    list_device();

    /* oled 相关 */
    oled_init();
    oled_show_name(1, 1);

    /* 开启灯闪烁 */
    led_init();

    /* 看门狗相关 */
    watchdog_init();

    /* 舵机相关 */
//    motor_init();

    /* 测距相关 */
//    distance_init();

    /* 按键中断相关 */
//    key_init();

    return 0;
}


//MSH_CMD_EXPORT(led, RT-THREAD FIRST LED SAMPLE);
